﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ylh.ElvModel;
using Ylh.Enums;
using Ylh.Data;

public partial class 示例OR测试_QueryWhere_QueryWhere : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        TbEvlutionText text = new TbEvlutionText();
        QueryWhere where = new QueryWhere(text);
        where.AND(text.Code, OperateType.等于, "123123123").OR(text.CreateDate, OperateType.小于, DateTime.Now.ToString());

        Response.Write("<P>" + where.StrWhere + "</P>");
        foreach (KeyValuePair<String,Object> item in where.PreWhere )
        {
            Response.Write("<P>" + item.Key + ":" + item .Value+ "</P>");
        }
    }
}